import request from "@/utils/request";

export function getSingerCategoryList() {
  return request({
    url: "/singer_category/singer_category/getSingerCategoryList",
    method: "get",
  });
}

// 查询歌手分类列表
export function listSinger_category(query) {
  return request({
    url: "/singer_category/singer_category/list",
    method: "get",
    params: query,
  });
}

// 查询歌手分类详细
export function getSinger_category(id) {
  return request({
    url: "/singer_category/singer_category/" + id,
    method: "get",
  });
}

// 新增歌手分类
export function addSinger_category(data) {
  return request({
    url: "/singer_category/singer_category",
    method: "post",
    data: data,
  });
}

// 修改歌手分类
export function updateSinger_category(data) {
  return request({
    url: "/singer_category/singer_category",
    method: "put",
    data: data,
  });
}

// 删除歌手分类
export function delSinger_category(id) {
  return request({
    url: "/singer_category/singer_category/" + id,
    method: "delete",
  });
}
